﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Learning.Classifiers
{
    public class Attribute_Stats
    {
        Attribute m_att;
        public int[,] m_domain_Stats;

        public Attribute_Stats(Attribute att, int result_Domain_num)
        {
            if (att == null) throw new Exception("iligal attribaute (null)");
            this.m_att = att;
            m_domain_Stats = new int[att.Num_of_vals, result_Domain_num];
        }


        public Attribute get_att()
        {
            return this.m_att;

        }

        public int get_stats_at(int att_val, int ans_val)
        {
            return m_domain_Stats[att_val, ans_val];
        }
    }
}
